package com.tonggedata.dataapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tonggedata.dataapi.entity.ApiGroup;
import com.tonggedata.dataapi.dto.ApiGroupDto;
import com.tonggedata.dataapi.dto.ApiGroupParamDto;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Map;

/**
 * ==================================================
 *
 * @author : tonggedata
 * @fileName:
 * @create : 2022-06-19 13:08:46
 * @Description： api业务分组表
 * ==================================================
 * @since 1.0.0
 */
public interface ApiGroupService extends IService<ApiGroup> {

    Result insert(User loginUser, ApiGroup apiGroup);

    Result queryApiGroupListPaging(User loginUser, String searchVal, Integer pageNo, Integer pageSize);

    Map<String, Object> queryApiGroupList(User loginUser, String name);

    Map<String, Object> queryApiGroupAndApiConfigList(User loginUser,String groupName, String apiName);

    Map<String, Object> queryApiGroup(long id);

    Result<Object> updateApiGroup(long id, User loginUser, ApiGroupParamDto apiGroupParam);

    Result<Object> delete(User loginUser, long id);

    Result<Object> createApiGroup(User loginUser, ApiGroupParamDto apiGroupParam);


}
